<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<html>

	<head>
		<title>Recording :: List</title>
		<meta name="object" content="recording">
	</head>

	<body>

		<div id="apphead">
			<h2>Recording :: <em>List</em></h2>
		</div>

		<div id="projecthome" class="app">

			<table border="1" cellspacing="2" cellpadding="3" width="100%">
				<tr>
					<th>Title</th>
					<th>Artist</th>
					<th>Year</th>
					<th>Type</th>
					<th>Created</th>
					<th>Actions</th>				
				</tr>
				<c:forEach items="${recordings}" var="recording" varStatus="status">
					<tr class="${status.count % 2 == 0 ? 'b' : 'a'}">
						<td><a href="<c:url value="recordingDisplay.action?uuid=${recording.uuid}"/>">${recording.title}</a></td>
						<td>${recording.artist.name}</td>
						<td>${recording.year}</td>
						<td>${recording.type}</td>
						<td>${recording.created}</td>
						<td>
							<a href="<c:url value="/recordingEdit.action?uuid=${recording.uuid}"/>">edit</a>
							<a href="<c:url value="/recordingExport.action?uuid=${recording.uuid}"/>">export</a>
						</td>
					</tr>
				</c:forEach>
			</table>

		</div>

	</body>

</html>